home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / block.h < prev    next >
C/C++ Source or Header  |  1995-03-30  |  631b  |  34 lines

  1. /* C++ wrapper for assembler block copy routines */
  2.  
  3. #ifndef BLOCK_H
  4. #define BLOCK_H
  5.  
  6. extern "C"{
  7. #include "btypes.h"
  8. }
  9.  
  10. /* needs screen.h */
  11.  
  12. class
  13. Block : public Screen
  14. {
  15. private:
  16.     void copy(const Block& b);
  17. protected:
  18.     byte *blockmem;
  19.     uint32 width,height,byteLength;
  20. public:
  21.     Block();
  22.     Block(const Block& b);
  23.     Block& operator=(const Block& b);
  24.     virtual ~Block();
  25.     
  26.     virtual void cut(uint32 x1, uint32 y1, uint32 xw, uint32 yw);
  27.     virtual void reCut(uint32 x1, uint32 y1);
  28.     virtual void paste(uint32 x1, uint32 y1);
  29.         int getHeight(void) const { return height;}
  30.         int getWidth(void) const { return width;}
  31. };
  32.  
  33. #endif
  34.